package com.zjz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
//@Controller注解的类会自动添加到Spring上下文中
// 如果有

@Controller
public class Controllertest2 {

    @RequestMapping("/t2")
    public String test1(Model model){
        model.addAttribute("msg","Controller2");

        return "test";
    }

    @RequestMapping("/t3")
    public String test3(Model model){

      model.addAttribute("msg","Controller3");

        return "/admin/test";
    }


}
